package com.kj.report.model;

import java.util.Date;

/**
 * POJO:PackageInfo
 * 
 * @author wang.zx
 * @date 2016-4-14
 */

public class PackageInfo extends BaseModel {
	
	private Integer	packageId;		 /* 套餐ID */ 
	private Integer	deviceTypeId;		 /* 对应的设备类型ID */ 
	private String	name;		 /* 套餐名称 */ 
	private Double	price;		 /* 套餐价格 */ 
	private Double  originalPrice;	/*套餐原始价格*/
	private String	description;		 /* 套餐描述 */ 
	private Date	createTime;		 /* 创建时间 */ 
	private String	creator;		 /* 创建人 */ 

	// Constructor
	public PackageInfo() {
	}
	
	/**
	 * full Constructor
	 */
	public PackageInfo(Integer packageId, Integer deviceTypeId, String name, Double price, Double originalPrice, String description, Date createTime, String creator) {
		this.packageId = packageId;
		this.deviceTypeId = deviceTypeId;
		this.name = name;
		this.price = price;
		this.originalPrice = originalPrice;
		this.description = description;
		this.createTime = createTime;
		this.creator = creator;
	}

	// getter && setter
	// 在setter方法最后加上"return this;"并把返回参数改为PackageInfo可以实现连缀设置属性
	
	public Integer getPackageId() {
		return packageId;
	}

	public Double getOriginalPrice() {
		return originalPrice;
	}

	public void setOriginalPrice(Double originalPrice) {
		this.originalPrice = originalPrice;
	}

	public PackageInfo setPackageId(Integer packageId) {
		this.packageId = packageId;
		return this;
	}
	
	
	public Integer getDeviceTypeId() {
		return deviceTypeId;
	}

	public PackageInfo setDeviceTypeId(Integer deviceTypeId) {
		this.deviceTypeId = deviceTypeId;
		return this;
	}
	
	
	public String getName() {
		return name;
	}

	public PackageInfo setName(String name) {
		this.name = name;
		return this;
	}
	
	
	public Double getPrice() {
		return price;
	}

	public PackageInfo setPrice(Double price) {
		this.price = price;
		return this;
	}
	
	
	public String getDescription() {
		return description;
	}

	public PackageInfo setDescription(String description) {
		this.description = description;
		return this;
	}
	
	public Date getCreateTime() {
		return createTime;
	}

	public PackageInfo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	
	
	public String getCreator() {
		return creator;
	}

	public PackageInfo setCreator(String creator) {
		this.creator = creator;
		return this;
	}
	
	@Override
	public String toString() {
		return "PackageInfo [" + "packageId=" + packageId + ", deviceTypeId=" + deviceTypeId + ", name=" + name + ", price=" + price + ", description=" + description + ", createTime=" + createTime + ", creator=" + creator +  "]";
	}
}
